- form
- The unknown form image.
- pageRequestCallback
- Page request callback if more form images are needed.
- userData
- The user defined data that is associated with __Delegates.PageRequestCallback.
- categories
- List of Master Forms categories to use in comaprison, pass null or empty to use all Master Forms in the repository.
Visual Basic (Declaration) | |
---|---|
Overloads Public Function Run( _ ByVal form As RasterImage, _ ByVal pageRequestCallback As PageRequestCallback, _ ByVal userData As Object, _ ByVal categories As List(Of IMasterFormsCategory) _ ) As AutoFormsRunResult |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public AutoFormsRunResult Run( RasterImage form, PageRequestCallback pageRequestCallback, object userData, List<IMasterFormsCategory> categories ) |
C++/CLI | |
---|---|
public: AutoFormsRunResult^ Run( RasterImage form, PageRequestCallback^ pageRequestCallback, Object^ userData, List<IMasterFormsCategory>^ categories ) |
Parameters
- form
- The unknown form image.
- pageRequestCallback
- Page request callback if more form images are needed.
- userData
- The user defined data that is associated with __Delegates.PageRequestCallback.
- categories
- List of Master Forms categories to use in comaprison, pass null or empty to use all Master Forms in the repository.
Return Value
Returns the results of the recognition and processing if the form is recognized, otherwise it returns null. If the Master Form has no processing field, AutoFormsRunResult.FormFields will be null.
Visual Basic | Copy Code |
---|---|
Public Codecs As RasterCodecs |
C# | Copy Code |
---|---|
public RasterCodecs Codecs; |
This method automatically recognizes the unknown form and process its fields at the same time.
If RecognizeFirstPageOnly is true, the recognition will be performed based on the first page only, if it is false the recognition will be performed over all the form pages.
When RecognizeFirstPageOnly is true and the recognition is performed based on the first page only, form should have at least the first page of the form. So during processing, when more pages are required this method will ask for the required pages one page at a time using the pageRequestCallback. The PageRequestCallbackData.FormPageNumber will have the number of the required page and the user returns the requested page image through the PageRequestCallbackData.Page. For example, in the case where multiple forms are fed to the scanner, you scan the first page and pass it to the form, recognize its form by doing the comparison based on the first page, and then after the form is recognized, the engine will ask for the required pages which you then have to scan for further processing.
If the form is not recognized it will return null. If the Master Form of the form type has no field then AutoFormsRunResult.FormFields will be null.
If form has all form pages you can set pageRequestCallback to null.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family